<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale1,maximum-scale=1">
    <title>Demo-Three</title>
    <title>Demo-Three</title>
    <link rel="shortcut icon" th:href="@{/pages/logo-1.ico}" href="../static/pages/logo-1.ico"/>
    <link rel="stylesheet" href="../static/layui/css/layui.css" th:href="@{/layui/css/layui.css}">
    <link rel="stylesheet" href="../static/layui/css/log.css" th:href="@{/layui/css/log.css}">
    <link rel="stylesheet" href="../static/lyear/css/style.min.css" th:href="@{/lyear/css/style.min.css}">
    <link rel="stylesheet" href="../static/lyear/css/bootstrap.min.css" th:href="@{/lyear/css/bootstrap.min.css}">
    <link rel="stylesheet" href="../static/lyear/css/materialdesignicons.min.css" th:href="@{/lyear/css/materialdesignicons.min.css}">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!--头部信息-->
    <div th:replace="common/topbar::#topbarheader"></div>
    <!--左侧导航-->
    <div th:replace="common/leftbar::#leftbaraside"></div>

        <div class="layui-body" style="background-color: rgba(233,234,234,0.85)">
            <!-- 内容主体区域 -->


<!--            <div class="layui-carousel" id="ID-carousel-demo-image">-->
<!--                <div carousel-item>-->
<!--                    <div><img src="https://unpkg.com/outeres/demo/carousel/720x360-1.jpg" ></div>-->
<!--                    <div><img src="https://unpkg.com/outeres/demo/carousel/720x360-2.jpg"></div>-->
<!--                    <div><img src="https://unpkg.com/outeres/demo/carousel/720x360-3.jpg"></div>-->
<!--                    <div><img src="https://unpkg.com/outeres/demo/carousel/720x360-4.jpg"></div>-->
<!--                    <div><img src="https://unpkg.com/outeres/demo/carousel/720x360-5.jpg"></div>-->
<!--                </div>-->
<!--            </div>-->

            <nav class="layui-breadcrumb">
            <i class=""></i> <a href="index.html" th:href="@{/login/index}" class="layui-icon layui-icon-home">首页</a>
            </nav>
            <article class="">
                <table class="table">
                    <thead>
                    <tr>
                        <th class="">信息统计</th>
                    </tr>
                    <tr class="">
                        <th>统计</th>
                        <th>资讯库</th>
                        <th>图片库</th>
                        <th>产品库</th>
                        <th>用户</th>
                        <th>管理员</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr class="">
                        <td>总数</td>
                        <td>92</td>
                        <td>9</td>
                        <td>0</td>
                        <td>8</td>
                        <td>20</td>
                    </tr>
                    <tr class="">
                        <td>今日</td>
                        <td>0</td>
                        <td>0</td>
                        <td>0</td>
                        <td>0</td>
                        <td>0</td>
                    </tr>
                    <tr class="">
                        <td>昨日</td>
                        <td>0</td>
                        <td>0</td>
                        <td>0</td>
                        <td>0</td>
                        <td>0</td>
                    </tr>
                    <tr class="">
                        <td>本周</td>
                        <td>2</td>
                        <td>0</td>
                        <td>0</td>
                        <td>0</td>
                        <td>0</td>
                    </tr>
                    <tr class="">
                        <td>本月</td>
                        <td>2</td>
                        <td>0</td>
                        <td>0</td>
                        <td>0</td>
                        <td>0</td>
                    </tr>
                    </tbody>
                </table>

            </article>
        </div>
</div>
<script src="../static/layui/layui.js" th:src="@{/layui/layui.js}" type="text/javascript"></script>
<script src="../static/js/vue.min.js" th:src="@{/js/vue.min.js}" type="text/javascript"></script>
<script src="../static/js/jquery-3.6.3.min.js" th:src="@{/js/jquery-3.6.3.min.js}" type="text/javascript"></script>
<script th:inline="javascript">
    // layui.use(function(){
    //     var carousel = layui.carousel;
    //     // 渲染 - 图片轮播
    //     carousel.render({
    //         elem: '#ID-carousel-demo-image',
    //         width: '100%',
    //         height: '100%',
    //         interval: 3000
    //     });
    // });


    //Javascript代码区域
    window.onload=function() {
        // let user = [[${user}]];
        // if (user == null || user == 0) {
        //     window.location.href = "/";
        // }
    }

    // layui.use((['element','layer','util'],function () {
    //     var element = layui.element
    //     ,layer = layui.layer
    //     ,util = layui.util
    //     ,$ = layui.$;
    //
    //     //头部事件
    //     util.event('lay-header-event', {
    //         //左侧菜单事件
    //         menuLeft: function (othis) {
    //             layer.msg('展开左侧菜单的操作',{icon: 0});
    //         }
    //         ,mebuRight: function () {
    //             layer.open({
    //                 type: 1
    //                 ,content: '<div style="padding:15px;">处理右侧面板的操作</div>'
    //                 ,area: ['260px', '100%']
    //                 ,offset: 'rt' //右上角
    //                 ,anim: 5
    //                 ,shadeClose: true
    //             });
    //         }
    //     });
    // }));

    layui.use(function (){

        $("#loginout").click(function () {
            $.ajax({
                url: "http://localhost:8080/login/out",
                data: {
                },
                type: "post"
            })
        });
    });
</script>
</body>
</html>
